/*
 *  NFCSigning - Open source library for signing/validation of NDEF messages
 *  Copyright (C) 2009-2010 The NFCSigning Team
 *
 *  This library is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Lesser General Public
 *  License as published by the Free Software Foundation; either
 *  version 2.1 of the License, or (at your option) any later version.
 *
 *  This library is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *  Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public
 *  License along with this library; if not, write to the Free Software
 *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 *
 */
package writebinary;

import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;


/**
 *
 * @author emarkki
 */
public class Main {

    private static byte[] data = { 
        (byte) 217, 
        (byte) 2,         (byte) 125,         (byte) 0,         (byte) 83, 
        (byte) 112,         (byte) 153,         (byte) 1,         (byte) 26, 
        (byte) 0,         (byte) 85,         (byte) 0,         (byte) 104, 
        (byte) 116,         (byte) 116,         (byte) 112,         (byte) 58, 
        (byte) 47,         (byte) 47,         (byte) 119,         (byte) 119, 
        (byte) 119,         (byte) 46,         (byte) 109,         (byte) 97, 
        (byte) 114,         (byte) 107,         (byte) 117,         (byte) 115, 
        (byte) 112,         (byte) 97,         (byte) 103,         (byte) 101, 
        (byte) 46,         (byte) 99,         (byte) 111,         (byte) 109, 
        (byte) 89,         (byte) 3,         (byte) 86,         (byte) 1, 
        (byte) 83,         (byte) 105,         (byte) 103,         (byte) 9, 
        (byte) 1,         (byte) 1,         (byte) 0,         (byte) 64, 
        (byte) 111,         (byte) 19,         (byte) 169,         (byte) 86, 
        (byte) 223,         (byte) 144,         (byte) 99,         (byte) 226, 
        (byte) 72,         (byte) 94,         (byte) 9,         (byte) 247, 
        (byte) 141,         (byte) 241,         (byte) 41,         (byte) 148, 
        (byte) 177,         (byte) 94,         (byte) 103,         (byte) 90, 
        (byte) 158,         (byte) 103,         (byte) 59,         (byte) 125, 
        (byte) 196,         (byte) 213,         (byte) 105,         (byte) 24, 
        (byte) 188,         (byte) 35,         (byte) 18,         (byte) 18, 
        (byte) 200,         (byte) 52,         (byte) 231,         (byte) 186, 
        (byte) 74,         (byte) 32,         (byte) 214,         (byte) 246, 
        (byte) 60,         (byte) 180,         (byte) 140,         (byte) 242, 
        (byte) 250,         (byte) 62,         (byte) 56,         (byte) 71, 
        (byte) 25,         (byte) 190,         (byte) 231,         (byte) 226, 
        (byte) 209,         (byte) 146,         (byte) 30,         (byte) 152, 
        (byte) 115,         (byte) 244,         (byte) 18,         (byte) 213, 
        (byte) 192,         (byte) 202,         (byte) 28,         (byte) 99, 
        (byte) 1,         (byte) 0,         (byte) 15,         (byte) 42, 
        (byte) 42,         (byte) 67,         (byte) 69,         (byte) 82, 
        (byte) 84,         (byte) 73,         (byte) 70,         (byte) 73, 
        (byte) 67,         (byte) 65,         (byte) 84,         (byte) 69, 
        (byte) 42,         (byte) 42, 
    };

    
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {

        BufferedOutputStream out = null;
        try {
            out = new BufferedOutputStream(new FileOutputStream(new File("out.dat")));
            out.write(data);
        } catch (FileNotFoundException ex) {
            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IOException ex) {
            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
        } finally {
            try {
                out.close();
            } catch (IOException ex) {
                Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }

}
